package com.example.demo.mvvm.utils;

import android.content.Context;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.example.demo.mvvm.bean.BannerBean;
import com.youth.banner.loader.ImageLoader;

/**
 * Created by 80711 on 2018/5/17.
 */

public class BannerImageLoader extends ImageLoader{
    @Override
    public void displayImage(Context context, Object path, ImageView imageView) {
        if(path instanceof BannerBean){
            Glide.with(context).load(((BannerBean)path).getImagePath()).into(imageView);
        }
    }
}
